﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TiPort.TiEntityObjects;
using System.Xml.Serialization;
using TI;

namespace TiEntityObject.Protocol
{
    public class ProtocolApplication 
    {
        public string ProtocolNumber { get; set; }

        [XmlElement("journalNumber")]
        public string JournalNumber { get; set; }

        [XmlElement("appFormat")]
        public string  AppFormat { get; set; }

        [XmlElement("price")]
        public decimal Price { get; set; }

        [XmlElement("goodsDelivered")]
        public string GoodsDelivered { get; set; }

        [XmlElement("expensesInfo")]
        public string  ExpensesInfo { get; set; }

        [XmlElement("commonInfo")]
        public string commonInfo { get; set; }


        [XmlElement("appDate")]
        public DateTime AppDate { get; set; }
        
        [XmlElement("appRating")]
        public string AppRating { get; set; }


        [XmlElement("applicationParticipants")]
        [LinkObjectAttribute(ChildFieldName = "JournalNumber", IsCollection = true, IsPartialObject = true, ParentFieldName = "JournalNumber")]
        public ProtocolApplicationParticipants ApplicationParticipants { get; set; }                

    }
}
